package com.cloud.lesson.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RestController;

 /**
 * @author: Mr.Lai
 * @createTime: 2021/01/12
 * @classNote:
 **/
@RestController
@RefreshScope //刷新监听gitee上的yml动态
// 若想刷新生效 必须运维post请求刷新接口 curl -X POST "http://localhost:3355/actuator/refresh"
// curl -X POST "http://localhost:3344/actuator/bus-refresh" rabbitmq
public class ConfigClientControll {
    @Value("${com.cloud.alibaba.config.info}")
    private String configInfo;


    @GetMapping("/configInfo")
    public String getConfigInfo(){
        return configInfo;
    }



}
